import { getRequest, postRequest } from '/@/lib/axios';

export const projectApi = {
  getProjectList: () => {
    return postRequest('/api/ProjectList');
  },
  // 创建项目
  add: (param) => {
    return postRequest('/projectLists/add', param);
  },
  //编辑回显
  getByUuid: (param) => {
    return getRequest('/projectLists/getByUuid', param);
  },
  //编辑项目
  update: (param) => {
    return postRequest('/projectLists/update', param);
  },
  // 删除项目/delete/{id}
  delete: (id) => {
    return getRequest(`/projectLists/delete/${id}`);
  },
};
